package com.chuangfeng.building.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TAdminInfo entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_admin_info")
public class TAdminInfo implements java.io.Serializable {

	// Fields

	private Integer administrorId;
	private String userName;
	private String realName;
	private String sex;
	private String position;
	private String company;
	private String dept;
	private String city;
	private String mobile;
	private String telphone;
	private String email;
	private String idCard;
	private Date birthday;
	private String password;
	private Integer delFlag;
	private Integer status;

	// Constructors

	/** default constructor */
	public TAdminInfo() {
	}

	/** full constructor */
	public TAdminInfo(String userName, String realName, String sex,
			String position, String company, String dept, String city,
			String mobile, String telphone, String email, String idCard,
			Date birthday, String password, Integer delFlag, Integer status) {
		this.userName = userName;
		this.realName = realName;
		this.sex = sex;
		this.position = position;
		this.company = company;
		this.dept = dept;
		this.city = city;
		this.mobile = mobile;
		this.telphone = telphone;
		this.email = email;
		this.idCard = idCard;
		this.birthday = birthday;
		this.password = password;
		this.delFlag = delFlag;
		this.status = status;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "administrorId", unique = true, nullable = false)
	public Integer getAdministrorId() {
		return this.administrorId;
	}

	public void setAdministrorId(Integer administrorId) {
		this.administrorId = administrorId;
	}

	@Column(name = "userName", length = 60)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "realName", length = 60)
	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	@Column(name = "sex", length = 2)
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "position", length = 20)
	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	@Column(name = "company", length = 200)
	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Column(name = "dept", length = 20)
	public String getDept() {
		return this.dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	@Column(name = "city", length = 20)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "mobile", length = 11)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "telphone", length = 12)
	public String getTelphone() {
		return this.telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	@Column(name = "email", length = 200)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "IdCard", length = 18)
	public String getIdCard() {
		return this.idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "birthday", length = 10)
	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Column(name = "password", length = 32)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "delFlag")
	public Integer getDelFlag() {
		return this.delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}